import React,{forwardRef} from 'react'

const SonComp = forwardRef((props,ref)=>{
    return (
        <div ref={ref}>
            <h2>SonComp</h2>
            <div>子组件</div>
        </div>
    )
})
export default SonComp
